<?php

namespace app\uniapp\service;

use app\model\store\GoodsReply;
use app\uniapp\service\traits\InstanceTrait;

class GoodsReplyService extends UniBaseService
{

    use InstanceTrait;

    function initialize()
    {
        $this->model = new GoodsReply();
    }

    function formatData(array $data): array
    {
        if (isset($data['imageArr'])){
            $data['images'] = miImplode($data['imageArr']);
            unset($data['imageArr']);
        }
        return $data;
    }
}
